package com.zdp.filesync.commonline.service.impl;

import com.zdp.filesync.commonline.service.CommonLine;
import org.springframework.beans.factory.annotation.Value;

import java.util.function.Function;

public class CommonLineUnix extends AbstractCommonLine {
    private String prex = "sh";

    private String other = "-c";

    @Value("${file-sync.common-line.charset:UTF-8}")
    private String charSetName;

    @Override
    String getCharSetName() {
        return charSetName;
    }

    @Override
    protected String getPrex() {
        return prex;
    }

    @Override
    String getOther() {
        return other;
    }
}
